<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 15:36:44
         compiled from "..\templates\product\product_list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:189835489579c16f708-51095912%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '63294445972a25a9658a6c64d70114246eaa7aff' => 
    array (
      0 => '..\\templates\\product\\product_list.tpl',
      1 => 1416937192,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '189835489579c16f708-51095912',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'notice' => 0,
    'read_product' => 0,
    'k' => 0,
    'product' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5489579c27a1b7_94035365',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5489579c27a1b7_94035365')) {function content_5489579c27a1b7_94035365($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?><div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh Sách Sản Phẩm</a> </div>
  </div>
  <?php echo $_smarty_tpl->tpl_vars['notice']->value;?>

  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
     <form action="product_delete_all.php" method="post">
        <div class="widget-box">
          <div class="widget-title">
          <div class="buttons" style="position:absolute;right:175px">
	       <a title="Icon Title" class="btn btn-mini" href="product_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
             <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span> 
            <h5>Giới thiệu [Danh sách]</h5>
          </div>
    
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                <th style="width:40px;">
                    <div class="checker" >
                        <input type="checkbox" />
                    </div>
                    </th>
                  <th>Mã</th>
                  <th>Tên</th>
                  <th>Đơn Giá</th>
                  <th>Lượt xem</th>
                  <th>Trạng thái</th>
                  <th>Hình Ảnh Sản Phẩm</th>
                  <th>Hình Ảnh Thương Hiệu</th>
                  
                  <th>Tác Vụ</th>
                  
                </tr>
              </thead>
              <tbody>
                <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['read_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
$_smarty_tpl->tpl_vars['product']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['product']->key;
?>
                <?php if ($_smarty_tpl->tpl_vars['k']->value==0){?>
                <tr class="gradeX" style="background:#A9B9CB">
                <?php }?>
                <td style="text-align:center">
                    <div class="checker">
                        <input type="checkbox" name="data[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
"/>
                    </div>
                    </td>
               	  <td><?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</td>
                  <td><?php echo number_format($_smarty_tpl->tpl_vars['product']->value['price_new']);?>
 VNĐ</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['product']->value['views'];?>
</td>
                  <td><a href="product_update_status.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
"><i class="icon-eye-<?php if ($_smarty_tpl->tpl_vars['product']->value['status']==1){?>open<?php }else{ ?>close<?php }?>"></i></a></td>
                  <td class="center"><img src="/upload/<?php if ($_smarty_tpl->tpl_vars['product']->value['image']!=''){?>product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
<?php }else{ ?>icon/no-avatar.jpg<?php }?>" style="max-width:50px" /></td>
                  <td class="center"><img src="/upload/<?php if ($_smarty_tpl->tpl_vars['product']->value['image_brand']!=''){?>brand_product_category/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['product']->value['brand_day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['product']->value['image_brand'];?>
<?php }else{ ?>icon/no-avatar.jpg<?php }?>" style="max-width:50px" /></td>
                  <td class="center">
                  		<a href="product_update.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
"><i class="icon icon-pencil"></i></a>
                        <a href="product_delete.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
"><i class="icon icon-remove"></i></a>
                  </td>
                </tr>
                 <?php } ?>
              </tbody>
            </table>
          </div>
          </form>
        </div>
        
        
        
      </div>
    </div>
  </div>
<?php }} ?>